Your software company has been contracted to write a prototype program to perform simple statistical evaluations of integer data. Your...
Your software company has been contracted to write a prototype program to
perform simple statistical evaluations of integer data. Your program needs
to implement the following functions:
def calcMean (scores, count)
// Where scores is an an array/list of integers and
// count is the number of items in the array
// mean is essentially the same as the average.
// return the mean of the data in scores as a float
def calcMedian (scores, count)
// Calculate the median value for the data in scores
// Median is middle value if the number of items is odd
// or the average of the middle two values if the number
// of items is even.
def calcVariance (scores, count)
// Calculate the variance value for the data in scores
// variance is determined using the formula:
the sum of the square of the values / count
- square of the sum of the values / square of the count
def calcStdDev (variance)
// Calculate the standard deviation value for the data in scores
// standard deviation is the square root of the variance
def Histogram ()
// Print a histogram of the data in scores
// the bar chart in chapter 6.10 will give you a
// good starting point.
You will also need to provide a main program to exercise the functions and
a few sample data sets that you use to test the program.
10 years ago
5
- Due in 6 hours. http://www.homeworkmarket.com/content/read-assignment-well-you-send-me-handshake-its-due-8-hours-now-i-need-perfect-work
- On Your Own Homework 12-1
- essay: why the students drop the classes in the unversity? causes and effect?
- Research Paper : The student will choose a topic for the paper/oral presentation from one of the security topics identified in...
- new one
- SCI 241 Week 8 DQ 1
- Organization Behavior Paper
- Operations Management
- 8 page essay
- Assignment